import Request from "@/utils/Request";
const getAddWorkOrderList = (data) => {
    return Request.postRequest('garbageApp/WorkOrder/addWorkOrderList', 2, data)
}
const getEquipmentList = async data => {
    return await Request.postRequest('/garbageApp/APP/equipment/getlist', 2, data)
}

const getAddWorkOrder = async data => {
    return await Request.postRequest('garbageApp/WorkOrder/addWorkOrder', 2, data)
}
// 上传清运结果
const getfeedback = async data => {
    return await Request.postRequest('garbageApp/clearthedoor/feedback', 2, data)
}
// 查看投递记录
const getEquipmentDelivery = async data => {
    return await Request.postRequest('garbageApp/clearthedoor/equipmentDelivery', 2, data)
}
// 满仓设备
const getFullyEquipment = () => {
    return Request.postRequest('garbageApp/fully/fullyEquipment', 2)
}

// 投递记录
const getRecord = () => {
    return Request.getRequest('garbageApp/delivery/record', 2)

}
// 历史记录
const getRecordList = (data) => {
    return Request.postRequest('garbageApp/WorkOrder/WorkOrderHistoryList', 2, data)


}
export { getAddWorkOrderList, getRecordList, getEquipmentList, getAddWorkOrder, getfeedback, getRecord, getEquipmentDelivery, getFullyEquipment }